<?php
/**
 * Created by PhpStorm.
 * User: kb130
 * Date: 2017/8/21
 * Time: 15:01
 */

namespace util\validate\rules;

/**
 * email验证规则
 * Class Email
 * @package util\validate\rules
 */
class Email extends BaseRule
{

    public function verify()
    {
        $match = '/^(\w)+(\.\w+)*@(\w)+((\.\w+)+)$/';

        return preg_match($match, $this->value);
    }
}